Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch exceptions in CanConnect and return false #18867

Merged
merged 1 commit into from
Nov 14, 2019
Merged

Catch exceptions in CanConnect and return false #18867

merged 1 commit into from
Nov 14, 2019

Conversation

roji
Copy link
Member

@roji roji commented Nov 12, 2019

Fixes #18355

We can consider logging the exceptions, although I'm not sure that would be the right thing to do - this method is purely about checking whether we can connect or not, and it could be said there's no actual "failing operation" warranting a log message. It would also likely cause lots of spurious log messages as automated health checks fail while networking is down etc.

Note that I don't think this is a breaking change, as applications are already expected to check for false.

@roji roji merged commit 288fedb into master Nov 14, 2019
@roji roji deleted the SwallowItAll branch November 14, 2019 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DatabaseFacade.CanConnect throws instead of returning false
2 participants